Optimal. Leaf size=180 \[ -\frac {(3-n) (8-n) (16-n) \, _2F_1(6,4+n;5+n;1+\sec (c+d x)) (a+a \sec (c+d x))^{4+n}}{42 a^4 d (1-n) (4+n)}-\frac {\cos ^7(c+d x) (1-\sec (c+d x))^2 (a+a \sec (c+d x))^{4+n}}{a^4 d (1-n)}+\frac {\cos ^7(c+d x) (a+a \sec (c+d x))^{4+n} \left (6 (8-n)-\left (108-25 n+n^2\right ) \sec (c+d x)\right )}{42 a^4 d (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 180, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3958, 102, 150,
67} \begin {gather*} -\frac {(3-n) (8-n) (16-n) (a \sec (c+d x)+a)^{n+4} \, _2F_1(6,n+4;n+5;\sec (c+d x)+1)}{42 a^4 d (1-n) (n+4)}+\frac {\cos ^7(c+d x) \left (6 (8-n)-\left (n^2-25 n+108\right ) \sec (c+d x)\right ) (a \sec (c+d x)+a)^{n+4}}{42 a^4 d (1-n)}-\frac {\cos ^7(c+d x) (1-\sec (c+d x))^2 (a \sec (c+d x)+a)^{n+4}}{a^4 d (1-n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 102
Rule 150
Rule 3958
Rubi steps
\begin {align*} \int (a+a \sec (c+d x))^n \sin ^7(c+d x) \, dx &=-\frac {\text {Subst}\left (\int \frac {(-a-a x)^3 (a-a x)^{3+n}}{x^8} \, dx,x,-\sec (c+d x)\right )}{a^6 d}\\ &=-\frac {\cos ^7(c+d x) (1-\sec (c+d x))^2 (a+a \sec (c+d x))^{4+n}}{a^4 d (1-n)}-\frac {\text {Subst}\left (\int \frac {(-a-a x) (a-a x)^{3+n} \left (a^3 (8-n)+a^3 (4-n) x\right )}{x^8} \, dx,x,-\sec (c+d x)\right )}{a^7 d (1-n)}\\ &=-\frac {\cos ^7(c+d x) (1-\sec (c+d x))^2 (a+a \sec (c+d x))^{4+n}}{a^4 d (1-n)}+\frac {\cos ^7(c+d x) (a+a \sec (c+d x))^{4+n} \left (6 (8-n)-\left (108-25 n+n^2\right ) \sec (c+d x)\right )}{42 a^4 d (1-n)}+\frac {((3-n) (8-n) (16-n)) \text {Subst}\left (\int \frac {(a-a x)^{3+n}}{x^6} \, dx,x,-\sec (c+d x)\right )}{42 a^3 d (1-n)}\\ &=-\frac {(3-n) (8-n) (16-n) \, _2F_1(6,4+n;5+n;1+\sec (c+d x)) (a+a \sec (c+d x))^{4+n}}{42 a^4 d (1-n) (4+n)}-\frac {\cos ^7(c+d x) (1-\sec (c+d x))^2 (a+a \sec (c+d x))^{4+n}}{a^4 d (1-n)}+\frac {\cos ^7(c+d x) (a+a \sec (c+d x))^{4+n} \left (6 (8-n)-\left (108-25 n+n^2\right ) \sec (c+d x)\right )}{42 a^4 d (1-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.99, size = 113, normalized size = 0.63 \begin {gather*} \frac {\left ((4+n) \cos ^5(c+d x) \left (42+\left (24-25 n+n^2\right ) \cos (c+d x)+6 (-1+n) \cos ^2(c+d x)\right )-\left (-384+200 n-27 n^2+n^3\right ) \, _2F_1(6,4+n;5+n;1+\sec (c+d x))\right ) (1+\sec (c+d x))^4 (a (1+\sec (c+d x)))^n}{42 d (-1+n) (4+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.32, size = 0, normalized size = 0.00 \[\int \left (a +a \sec \left (d x +c \right )\right )^{n} \left (\sin ^{7}\left (d x +c \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\sin \left (c+d\,x\right )}^7\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________